﻿using Custom.Infrastructure;
using Custom.Model.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Custom.Service.Repository
{
    public class SysUserRepository : DbContext<SysUser>
    {
        public SysUser GetUser(string username, string password)
        {
            var user = Get(w => w.username == username && w.password == password)?.FirstOrDefault();

            return user;
        }
    }
}
